package com.thinkgsp.jxc.report;

import java.util.ArrayList;
import java.math.BigDecimal;
import java.sql.Date;
import java.util.List;

import com.thinkgsp.jxc.model.RpContact;

public class RpCustomerContactDataSourceFactory {
	public static List<RpContact> createDataSource() {
		List<RpContact> list = new ArrayList<RpContact>();
		RpContact contact = new RpContact();
		contact.setIncludeCheckTag(true);
		contact.setId(1L);
		contact.setBillCode("AREC0000001");
		contact.setArpBillId(1L);
		contact.setBillDate(new Date(System.currentTimeMillis()));
		contact.setDirect(1);
		contact.setTypeId(1);
		contact.setAmount(new BigDecimal("1000"));
		contact.setEndAmount(new BigDecimal("1000"));
		list.add(contact);
		
		contact = new RpContact();
		contact.setIncludeCheckTag(true);
		contact.setId(2L);
		contact.setBillCode("REC00000001");
		contact.setRpBillId(1L);
		contact.setBillDate(new Date(System.currentTimeMillis()));
		contact.setDirect(1);
		contact.setTypeId(3);
		contact.setAmount(new BigDecimal("500"));
		contact.setEndAmount(new BigDecimal("500"));
		list.add(contact);
		
		contact = new RpContact();
		contact.setIncludeCheckTag(true);
		contact.setId(3L);
		contact.setBillCode("APAY0000001");
		contact.setArpBillId(2L);
		contact.setBillDate(new Date(System.currentTimeMillis()));
		contact.setDirect(-1);
		contact.setTypeId(-1);
		contact.setAmount(new BigDecimal("1000.98"));
		contact.setEndAmount(new BigDecimal("-500.98"));
		list.add(contact);
		
		contact = new RpContact();
		contact.setIncludeCheckTag(true);
		contact.setId(4L);
		contact.setBillCode("PAY00000001");
		contact.setRpBillId(4L);
		contact.setBillDate(new Date(System.currentTimeMillis()));
		contact.setDirect(-1);
		contact.setTypeId(-3);
		contact.setAmount(new BigDecimal("500"));
		contact.setEndAmount(new BigDecimal("-0.98"));
		list.add(contact);
		return list;
	}
}
